<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="!formGroup.valid">创建</button>
        </div>

        <div class="column">

          <div class="form-group">
            <label class="form-label">型号参数名称</label>
            <div class="form-input">
              <input id="modelParamName" name="modelParamName" type="text" placeholder="输入参数名称" autocomplete="off" formControlName="modelParamName">
            </div>
            <div *ngIf="formErrors.modelParamName" class="form-error">
              {{ formErrors?.modelParamName }}
            </div>
          </div>

          <div class="form-group">
            <label class="form-label">型号参数KEY</label>
            <div class="form-input">
              <input id="modelParamKey" name="modelParamKey" type="text" placeholder="输入参数KEY" autocomplete="off" formControlName="modelParamKey">
            </div>
            <div *ngIf="formErrors.modelParamKey" class="form-error">
              {{ formErrors?.modelParamKey }}
            </div>
          </div>
          <div class="form-group">
            <label class="form-label">设备名称</label>
            <div class="form-input">
              <select name="deviceCategoryId" class="chosen-select" formControlName="deviceCategoryId">
                <option [value]="item.deviceCategoryId" *ngFor="let item of this.parentEntity">
                  {{item?.deviceCategoryName}}
                </option>
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="form-label">默认值</label>
            <div class="form-input">
              <input id="defaultParamValue" name="defaultParamValue" type="number" placeholder="输入默认值" autocomplete="off" formControlName="defaultParamValue">
            </div>
            <div *ngIf="formErrors.defaultParamValue" class="form-error">
              {{ formErrors?.defaultParamValue }}
            </div>
          </div>

          <div class="form-group">
            <label class="form-label">型号参数单位</label>
            <div class="form-input">
              <input id="unit" name="unit" type="text" placeholder="输入参数单位" autocomplete="off" formControlName="unit">
            </div>
            <div *ngIf="formErrors.unit" class="form-error">
              {{ formErrors?.unit}}
            </div>
          </div>

          <div class="form-group">
            <label class="form-label">排序</label>
            <div class="form-input">
              <input name="seq" formControlName="seq" placeholder="输入排序" type="number">
            </div>
          </div>



        </div>

      </form>
    </div>
  </div>
</div>